package com.qf.service;

import com.qf.pojo.Music;

import java.util.List;

public interface MusicService {
    /**
     * 找到所有
     *
     * @return {@link List}<{@link Music}>
     */
    List<Music> findAll();

    List<Music> findByName(String musicName);

    Music findById(String musicId);

    Music nextSong(String musicId);

    Music lastSong(String musicId);

    List<Music> findByPage(String page, String limit);

    Long queryTotalCount();

    void add(Music music);
}
